import request from '@/request/request.js'

//管理员查找课程列表
export function adminSubjectList(data){
    return request({
        url:'/groupOne/subject/getSubjectList',
        method:'post',
        data
    })
}


//管理员获取阶段名称（专高/专业/实训）
export function adminLevelList(){
    return request({
        url:'/groupOne/subject/getLevelList',
        method:'post'
    })
}

//获取具体阶段名称（专业一/专业二....）
export function adminLearningProgressList(){
    return request({
        url:'/groupOne/subject/getSLearningProgressList',
        method:'post'
    })
}
//管理员新增课程列表
export function adminSubjectAdd(data){
    return request({
        url:'/groupOne/subject/addSubject',
        method:'post',
        data
    })
}
//讲师信息回显
export function adminSubjectById(id){
    return request({
        url:'/groupOne/subject/getSubjectById/'+id,
        method:'get'
    })
}
//管理员修改讲师
export function adminSubjectUpdate(data){
    return request({
        url:'/groupOne/subject/updateSubject',
        method:'post',
        data
    })
}
//管理员删除讲师
export function adminSubjectDelete(id){
    return request({
        url:'/groupOne/subject/delSubject/'+id,
        method:'get'
    })
}

//管理员导出讲师数据
export function exportOrder(){
    return request({
        url:'/groupOne/subject/exportFile',
        method:'get',
        responseType:'blob'
    })
}

//根据阶段id查找具体专业几
export function adminLevelById(id){
    return request({
        url:'/groupOne/subject/getSLevelById/'+id,
        method:'get'
    })
}
//根据课程id查找对应的题目信息
export function adminQuestionBySubjectId(id){
    return request({
        url:'/groupOne/subject/getQuestionBySubjectId/'+id,
        method:'get'
    })
}